<!DOCTYPE html>
<html lang="en">

<head>
    <title></title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta http-equiv="Content-Language" content="UTF-8">

    <style>
        body,
        div,
        p,
        ul,
        li,
        span {
            margin: 0px;
            padding: 0px;
        }

        div#wrap {
            width: 1024px;
            margin: 0 auto;
        }

        #head-nav {
            height: 95px;
            left: 0;
            width: 100%;
            top: 0px;
            border-bottom: 1px solid #949799;
        }

        #head-nav .img {
            width: 130px;
            height: 78px;
            line-height: 16px;
            float: left;
            background: url('./brand/index/about_logo.png') no-repeat scroll transparent;
            margin: 16px 0 0;
        }

        #head-nav .sp {
            float: left;
            margin-top: 34px;
            margin-right: 10px;
        }


        #head-nav .font {
            margin-top: 38px;
            font-size: 13px;
            font-weight: 700;
            height: 16px;
            line-height: 16px;
            float: left;
        }

        #main {
            height: 550px;
            width: 100%;
            border-bottom: 2px solid #949799;
        }

        #main .angel {
            background: url() no-repeat scroll transparent;
            width: 250px;
            height: 250px;
            margin: 63px 0 0 157px;
            display: inline-block;
        }

        #main .main-right {
            display: inline-block;
            margin-left: 24px;
            margin-top: 181px;
            position: absolute;
        }

        #main .msg {
            margin-bottom: 18px;
            color: #4e4e4e;
        }

        #home {
            color: #007ac0;
            text-decoration: underline;
        }

        #jump {
            color: #1e94da;
            text-decoration: underline;
            cursor: pointer
        }
    </style>
</head>

<body>
    <div id="wrap">

    </div>
    <script>
        function t(text) {
            if (window.__i18n__) {
                try {
                    var json = window.__i18n__.resources[window.__i18n__.locale]['translation']
                    return json[text]
                } catch (err) { }
            } else {
                return text
            }
        }
        document.title = t(window.__COMPANY_INFO_i18n_key.title)
        window.onload = function () {
            var htmlStr = '<div id="head-nav">' +
                '<div class="img"></div>' +
                '<span class="sp">/</span>' +
                '<div class="font">' + t(window.__COMPANY_INFO_i18n_key.systemName) + '</div>' +
                '</div>' +
                '<div id="main" class="group">' +
                '<div class="angel left"></div>' +
                '<div class="left main-right">' +
                '<div class="msg">' + t('很抱歉，您无权查看该页面！您可以尝试重新登录查看。') + '</div>' +
                '<a id="jump">' + t('返回会议管理首页') + '</a>' +
                '</div>' +
                '</div>'
            document.getElementById('wrap').innerHTML = htmlStr

            document.getElementById('jump').addEventListener('click', function () {
                var system_url = window.location.pathname.indexOf('/meetingCore') > -1 ?
                    '/meetingapicoreweb' : '/meetingapiweb';

                var _tmp = new window.XMLHttpRequest()
                var url = system_url + "/open_url"
                _tmp.open('GET', url, false)
                _tmp.onreadystatechange = function () {
                    var preUrl = '/meeting';
                    if (_tmp.readyState === 4 && _tmp.status === 200) {
                        try {
                            var res = JSON.parse(_tmp.responseText)
                            if (res.success) {
                                preUrl = res.data;
                            }
                            window.location = preUrl + '/index.html'

                        } catch (e) {
                            window.location = preUrl + '/index.html'
                        }
                    } else {
                        window.location = preUrl + '/index.html'
                    }
                }
                _tmp.send(null)
            })
        }

    </script>

</body>

</html>
